<!--
 * @Author: whq
 * @Date: 2025-03-16 10:39:37
 * @LastEditTime: 2025-03-23 16:38:44
 * @LastEditors: whq
 * @Description: 
 * @FilePath: \uniapp_build_mate_profit_mini\pagesPayment\outStockPayment\index.vue
-->
<template>
  <view class="container">
    <view class="add-icon" @click="eventDateHandle('open')">
      <view class="add-content">
        <view class="icon-wrapper">
          <uv-icon name="search" color="#2979ff" size="36"></uv-icon>
        </view>
        <text class="add-text">点击搜索付款人</text>
      </view>
    </view>
  </view>
</template>

<script setup>
import { ref, reactive, computed, watch, onMounted, nextTick } from "vue";
import { onLoad, onUnload } from "@dcloudio/uni-app";
import { getEmptyForm, themeColor, defaultUnit } from "@/utils/outStockUtils";
import cloudConfig from "@/config/uniCloudConfig.js";
// const uniCloudSalesManager = uniCloud.importObject("outStockManager"); //销售表
const uniCloudSalesManager = cloudConfig.getCloudObject("outStockManager");
const uniCloudStockManager = cloudConfig.getCloudObject("inStockManager");

const aggregatedData = ref(null);

const eventDateHandle = (eType, eData) => {};

const getInit = async () => {
  const userInfo = uni.getStorageSync("userInfo");
  const res = await uniCloudSalesManager.getOutStockManagerAggregatedData(
    "",
    userInfo._id
  );
  console.log(res, "=getGroupList=res==res==res");
  console.log(userInfo, "=userInfo=userInfo==userInfo==userInfo");
  aggregatedData.value = res.data;

  console.log(aggregatedData.value, "==aggregatedData===");
};
// 页面挂载

onMounted(() => {
  getInit();
});
</script>

<style lang="scss" scoped>
.container {
  height: 100vh;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.add-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  .add-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20rpx;

    .icon-wrapper {
      width: 120rpx;
      height: 120rpx;
      border-radius: 50%;
      background: rgba(41, 121, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      cursor: pointer;

      &:active {
        transform: scale(0.95);
        background: rgba(41, 121, 255, 0.2);
      }
    }

    .add-text {
      font-size: 28rpx;
      color: #666;
      margin-top: 10rpx;
    }
  }
}
</style>
